﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hands.LoginControl
{
    internal static class ConfigStorage
    {
        private static Dictionary<string, UriBranch> rootSet = new Dictionary<string, UriBranch>();

        internal static void addRoot(string key, UriBranch uriBranch)
        {
            if (!rootSet.ContainsKey(key))
            {
                rootSet.Add(key, uriBranch);
            }
        }

        internal static UriBranch getRoot(string key)
        {
            if (rootSet.ContainsKey(key))
            {
                return rootSet[key];
            }
            else
            {
                return null;
            }
        }
    }
}
